/*******************************************************************************
 * Simple C-K Editor
 * 
 * Copyright (C) 2009 Ingi BROWN - Centre de Gestion Scientifique - Ecole des Mines ParisTech
 * Licensed under the GNU General Public License Version 3.
 * 
 * Simple C-K Editor includes source code and libraries from the JUNG Project (Java Universal Network/Graph Framework) 
 * released under the BSD license. Copyright (c) 2003-2004,  Regents of the University of California and the JUNG Project.
 * 
 * See the License.txt file for more details.
 ******************************************************************************/

/*
 * MenuPointListener.java
 *
 * Created on March 22, 2007, 4:08 PM
 *
 * Copyright 2007 Grotto Networking
 */

package edu.ensmp.ckEditor.mousePlugin;

import java.awt.geom.Point2D;

/**
 * Used to set the point at which the mouse was clicked for those menu items
 * interested in this information. Useful, for example, if you want to bring up
 * a dialog box right at the point the mouse was clicked. The
 * PopupVertexEdgeMenuMousePlugin checks to see if a menu component implements
 * this interface and if so calls it to set the point.
 * 
 * @author Dr. Greg M. Bernstein
 */
public interface MenuPointListener {
	/**
	 * Sets the point of the mouse click.
	 * 
	 * @param point
	 */
	void setPoint(Point2D point);

}
